# coding: utf-8
#

import os

RDB_HOST = os.getenv("RDB_HOST") or "localhost"
RDB_PORT = int(os.getenv("RDB_PORT") or "32769")
RDB_USER = os.getenv("RDB_USER") or "admin"
RDB_PASSWD = os.getenv("RDB_PASSWD") or None
RDB_DBNAME = os.getenv("RDB_DBNAME") or "atxserver2"
AXT_URL = "http://172.16.3.180:4000"
TEST = True


class ServerSetting(object):
    def __init__(self) -> None:
        self._server_url = ""
        self._test = ""

    @property
    def server_url(self):
        return self._server_url

    @server_url.setter
    def server_url(self, value):
        self._test = value

    @property
    def test(self):
        return self._test

    @server_url.setter
    def test(self, value):
        self._test = value

server_setting = ServerSetting()